<?php
echo $this->Html->script('jquery.validate.min');
?>
<script type="text/javascript">
    $(document).ready(function(){
        $("form").validate({
            errorClass: "jqueryError",
            errorElement: 'label',
            debug: false,
            submitHandler: function(form) {
                $(':submit', form).attr('disabled', 'disabled').addClass('inactive');
                form.submit();
            }
        });
    });
</script>
<?php

echo $this->Form->input('name', array(
    'label' => 'Name',
    'class' => 'required',
    'between' => $this->Html->tag('span', '(Only letters and numbers, atleast 2 characters)', array('class' => 'description'))
));

echo $this->Form->input('status', array(
    'label' => 'Status',
    'checked' => true,
    'after' => $this->Html->tag('span', '(Uncheck to set the status as "disabled")', array('class' => 'description'))
));
?>